#include <CommandInsertTrafficSign.h>
Inheritance diagram for CommandInsertTrafficSign:

Public Member Functions | |
| CommandInsertTrafficSign (osg::Vec3 pos, OSGWindows *osgwind, TrafficSignTypes newType) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| TrafficSign * | sign |
| vector< TraffEduObject * > | insertedObjs_ |
Definition at line 8 of file CommandInsertTrafficSign.h.
|
||||||||||||||||
|
A constructor. Initializes osgwind_ and creates a new traffic sign object by using the given parameters.
Definition at line 2 of file CommandInsertTrafficSign.cpp. References OSGWindows::addObject(), TraffEduObject::getObjectGroup(), insertedObjs_, osgwind, osgwind_, TraffEduObject::setPosition(), TraffEduObject::setScale(), and sign. |
|
|
do the insertion of traffic sign object operation.
Implements Command. Definition at line 26 of file CommandInsertTrafficSign.cpp. References OSGWindows::doAddGeode(), osgwind_, and sign. |
|
|
undo the insertion of traffic sign object operation.
Implements Command. Definition at line 17 of file CommandInsertTrafficSign.cpp. References OSGWindows::doDeleteGeode(), osgwind_, and sign. |
|
|
a private vector of TraffEduObjects. It holds the inserted traffic sign objects. Definition at line 28 of file CommandInsertTrafficSign.h. Referenced by CommandInsertTrafficSign(). |
|
|
a private variable. It is initialized with the unique OSGWindows instance. Definition at line 16 of file CommandInsertTrafficSign.h. Referenced by CommandInsertTrafficSign(), execute(), and unexecute(). |
|
|
a private variable. It is used to hold the created traffic sign object. Definition at line 22 of file CommandInsertTrafficSign.h. Referenced by CommandInsertTrafficSign(), execute(), and unexecute(). |
1.4.6-NO